#-------------------------------------------------
#
# Project created by QtCreator 2022-08-30T15:07:02
#
#-------------------------------------------------

QT       += testlib
QT       -= gui

TARGET = maple_core_tests
CONFIG   += console
CONFIG   -= app_bundle
CONFIG += c++11

TEMPLATE = app

#-------------------------------------------------
# config program required lib or subprojects
#-------------------------------------------------

# whether generate version number automatically?
DEFINES += MAPLE_AUTO_GENERATE_VERSION_NO
include($$PWD/../../core/mp_qmake/mp_qmake.pri)

# add BOOST
MAPLE_BOOST_HEADER_ONLY = true
include($$PWD/../../core/mp_common/boost_libs.pri)

# add easyloggingpp
INCLUDEPATH +=  $$PWD/../../../3th/easyloggingpp/v9.96.7

# add maple core
INCLUDEPATH += $$PWD/../../core/mp_common
INCLUDEPATH += $$PWD/../../core/mp_http

LIBS += -L"../../core/$$build_type"
LIBS += -l"mp_core"
PRE_TARGETDEPS += "../../core/$$build_type/libmp_core.a"

#-------------------------------------------------
# Configure compilation output directory
#-------------------------------------------------

CONFIG_FILES = $$PWD/../data/uft8.txt $$PWD/../data/gbk.txt $$PWD/../data/test.jpg
cp_to_destdir($$CONFIG_FILES)

#-------------------------------------------------
# .H && .CPP
#-------------------------------------------------

SOURCES += \
    main.cpp \
    mpCodecUtilsTests.cpp \
    mpWin32FuncTests.cpp \
    mpDateUtilsTests.cpp \
    mpCommonTests.cpp \
    mpFileUtilsTests.cpp \
    mpLocaleUtilsTests.cpp \
    mpHashUtilsTests.cpp \
    mpLruCacheTests.cpp \
    mpStringUtilsTests.cpp \
    mpHttpUrlTests.cpp \
    mpHttpClitentTests.cpp \
    mpHttpConnectionManageTests.cpp \
    Mapper/mpFishMapper.cpp

HEADERS += \
    mpCodecUtilsTests.h \
    mpWin32FuncTests.h \
    mpDateUtilsTests.h \
    mpCommonTests.h \
    mpFileUtilsTests.h \
    mpLocaleUtilsTests.h \
    mpHashUtilsTests.h \
    mpLruCacheTests.h \
    mpStringUtilsTests.h \
    mpIoContextTest.h \
    mpHttpUrlTests.h \
    mpHttpClitentTests.h \
    mpHttpConnectionManageTests.h \
    Mapper/mpHttpConnectionManageThread.h \
    Mapper/mpFishMapper.h \
    Mapper/mpEntity.h \
    Mapper/mpTemporary.h \
    mpTestConfig.h \
    Mapper/mp_http_send_progress_callback.h \
    Mapper/mp_http_send_complete_callback.h \
    demo.h
